package com.ebupt.migu.music.api.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashSet;
import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author: liuyangyang@cd.ebupt.com
 * @create: 2020-11-18 17:24
 */
@Mapper
@DS("mysql_mg")
public interface RefreshUserGroupSizeMapper {

    /**
     * 查询人群状态为已完成且非自动更新的人群ID
     *
     * @return
     */
    List<String> group_ids_to_refresh();

    /**
     * 同步Redis中的人群规模到MySQL数据库
     */
    void refresh_user_group_size(Map<String, Object> map);
}
